package com.liuwa.common;

import com.alibaba.fastjson.JSON;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.net.Proxy;

@RunWith(SpringRunner.class)
@SpringBootTest
@AutoConfigureMockMvc
public class UnitTestBase {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    //protected Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("192.168.10.106", 8888));
    protected Proxy proxy = null; //new Proxy(Proxy.Type.HTTP, new InetSocketAddress("192.168.0.106", 8888));

    protected void print(Object obj){
        System.out.println(JSON.toJSONString(obj));
    }

    @Test
    public void test(){

    }
}
